<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>角色管理</title>
<link href="themes/default/rbac/style.css" rel="stylesheet" type="text/css" />
<link href="themes/default/rbac/table.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
require_once("include/database.inc.php");
require_once("include/database.cls.php");
$db_content=new conn_database(sHostName,sHostUser,sHostPassword,sDatabaseName,'utf8');
$sql="select iRole_Id,sRole_Name,sRole_Direction from user_role";
$request=mysql_query($sql);
?>
<table class="table_gray" id="1233" cellpadding="1">
    <caption>角色管理</caption>
    <thead>
        <th width="40" scope="col">编号</th>
        <th width="100" scope="col">名称</th>
        <th scope="col">描述</th>
        <th width="100" scope="col">操作</th>
    </thead>
    <tbody id="tbodySample">
    <?php
	while($data=mysql_fetch_array($request)){
	?>
        <tr>
            <td><?php echo($data["iRole_Id"]);?></td>
            <td width="100"><?php echo($data["sRole_Name"]);?></td>
            <td><?php echo($data["sRole_Direction"]);?></td>
            <td> 编辑 删除 </td>
        </tr>
	<?php
	}
    ?>
    </tbody>
</table>
</body>
</html>